package com.lanou3g.ptp.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "管理员")
public class Admin {

    @ApiModelProperty(name = "管理员id", hidden = true)
    private Long id;

    @ApiModelProperty(name = "账号")
    private String username;

    @JsonIgnore
    @ApiModelProperty(name = "密码")
    private String password;

    @ApiModelProperty(name = "学院id", hidden = true)
    private Long collegeId;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;

    @ApiModelProperty(name = "状态", hidden = true)
    private Integer status;

    @ApiModelProperty(name = "学院名称")
    private String collegeName;

    @ApiModelProperty("角色（0 admin，1 指导教师，2 院级教师，3 实习单位，4 学生）")
    private Integer role;
}
